﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WLG.Model.Interface;


namespace WLG.WPFView
{
    /// <summary>
    /// Interaction logic for ApplicationModelView.xaml
    /// </summary>
    public partial class ApplicationModelView : UserControl, IApplicationModelView
    {
        public ApplicationModelView()
        {
            InitializeComponent();
        }

        #region IApplicationModelObserver Members

        public void Update(WLG.Model.ApplicationModel model)
        {
            NotificationListContainer.Update(model.Notifications);
        }

        #endregion

        #region IObserver Members

        public void Update()
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IApplicationModelView Members

        public event SignInDelegate SignIn;

        #endregion

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            SignIn();
        }
    }
}
